package com.hr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (AoaNoticeList)表实体类
 *
 * @author makejava
 * @since 2022-06-19 14:19:23
 */
@SuppressWarnings("serial")
public class AoaNoticeList extends Model<AoaNoticeList> {
    @TableId(type = IdType.AUTO)
    private Long noticeId;
    
    private String content;
    
    private Integer isTop;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date noticeTime;
    
    private Long statusId;
    
    private String title;
    
    private Long typeId;
    
    private String url;
    
    private Long userId;
    //外表 用户表
    @TableField(exist = false)
    private AoaUser aoaUser;
    //外表 部门表
    @TableField(exist = false)
    private AoaDept aoaDept;


    public Long getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(Long noticeId) {
        this.noticeId = noticeId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getNoticeTime() {
        return noticeTime;
    }

    public void setNoticeTime(Date noticeTime) {
        this.noticeTime = noticeTime;
    }

    public Long getStatusId() {
        return statusId;
    }

    public void setStatusId(Long statusId) {
        this.statusId = statusId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public AoaUser getAoaUser() {
        return aoaUser;
    }

    public void setAoaUser(AoaUser aoaUser) {
        this.aoaUser = aoaUser;
    }

    public AoaDept getAoaDept() {
        return aoaDept;
    }

    public void setAoaDept(AoaDept aoaDept) {
        this.aoaDept = aoaDept;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "AoaNoticeList{" +
                "noticeId=" + noticeId +
                ", content='" + content + '\'' +
                ", isTop=" + isTop +
                ", modifyTime=" + modifyTime +
                ", noticeTime=" + noticeTime +
                ", statusId=" + statusId +
                ", title='" + title + '\'' +
                ", typeId=" + typeId +
                ", url='" + url + '\'' +
                ", userId=" + userId +
                ", aoaUser=" + aoaUser +
                ", aoaDept=" + aoaDept +
                '}';
    }
}

